package bag

import (
	"sync"
)

type ItemType uint8
const(
	Weapon ItemType = 1
	Food ItemType = 2
	Jewelry ItemType = 3
)

type Item struct {
	Id uint16
	Type ItemType
	Last uint16
	Next uint16
    Cap int 
}

type BagList struct {
	root *Item
	length int
}

type Bag struct {
    Max int
	Used int 
    Items *BagList
}

type BagMan struct {
	data [][]Item
	mu sync.Mutex
	Unused *BagList
}

var (
	BMan *BagMan
)